<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on:点击事件处理</title>
    <script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
    {{message}}
    <button v-on:click="fun1('good')">点击改变</button>
</div>

</body>
<script>
    new Vue({
        el:'#app',//接管app区域
        data:{
            message:'hello Vue !'
        },
        methods:{
            fun1:function (msg) {
                this.message = msg;
            }
        }


    });
</script>
</html>